package com.laolang.gongda.bookshop.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

@Entity
@Table(name = "user_status")

public class UserStatus implements Serializable {

	private static final long serialVersionUID = 1L;

	public UserStatus() {
		super();
	}

	public UserStatus(String statusDesc) {
		super();
		this.statusDesc = statusDesc;
	}

	@Override
	public String toString() {
		return "UserStatus [id=" + id + ", statusDesc=" + statusDesc + ", version=" + version + "]";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getStatusDesc() {
		return statusDesc;
	}

	public void setStatusDesc(String statusDesc) {
		this.statusDesc = statusDesc;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Id
	@GeneratedValue
	private Integer id;

	@Column(name = "status_desc", unique = true, length = 20)
	private String statusDesc;

	@Version
	private Integer version;

}
